package com.zhong.learning.auto_paper.vo;

import com.zhong.learning.auto_paper.po.QuestionPO;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhong
 * @date 2023/6/29
 */
@Data
@NoArgsConstructor
public class QuestionVO {
    private Integer questionId;
    private String content;
    private String type;
    private Integer score;
    private Integer titleNo;
    private Integer difficulty;

    public QuestionVO (QuestionPO questionPO) {
        this.questionId = questionPO.getId();
        this.content = questionPO.getContent();
        this.type = questionPO.getType();
        this.difficulty = questionPO.getDifficulty();
    }
}
